import request from "./index";

/** 类型列表 */
export async function getTypeList(data: any = {}) {
  return request<API.TypeListItem[]>("/subject/typeList", data);
}

/**查询学生学科 */
export async function getSchoolSubjectList() {
  return request<API.SubjectItem[]>("/school-subject/list");
}

/**查询学生已做学科 */
export async function getStudentSubjectList() {
  return request<number[]>("/subject/studentSubject");
}

/** 获取城市 */
export async function getCity(data: any = {}) {
  return request<API.ProvinceItem[]>("/district/getCityList", data);
}

/** 获取省份 */
export async function getProvince(data: any = {}) {
  return request<API.ProvinceItem[]>("/district/getProviceList", data);
}

/** 获取手机验证码 */
export async function getPhoneCode(data: any = {}) {
  return request<API.TypeListItem[]>("/user/getMobileCode", data);
}

/** 清除题目 */
export async function clearAnswers(data: any = {}) {
  return request<API.TypeListItem[]>("/exam/clearAnswers", data);
}
